home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / ModalText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.1 KB  |  50 lines  |  [TEXT/CWIE]

  1. /* ModalText.h -- Modal dialog */
  2.  
  3. #pragma once
  4.  
  5. #include "AMDialog.h"
  6. #include "DModalTextData.h"
  7.  
  8. /*----------*/
  9. Boolean        GetModalText    (DModalTextData*        ioData);
  10.  
  11. //----------
  12. struct ModalText {
  13.     AMDialog        super;
  14.  
  15.     DModalTextData*        mData;
  16.  
  17.     ControlHandle    mOKHandle;
  18.     ControlHandle    mSmallHandle;
  19.     ControlHandle    mLargeHandle;
  20.     ControlHandle    mX12345Handle;
  21.     ControlHandle    mX12345e6Handle;
  22.     ControlHandle    mPasswordHandle;
  23.     ControlHandle    mDateHandle;
  24.     ControlHandle    mTimeHandle;
  25.     ControlHandle    mStyledHandle;
  26. };
  27. typedef struct ModalText ModalText;
  28.  
  29. //----------
  30. ModalText*        NewModalText ();
  31. void    DeleteModalText        (ModalText*        window);
  32.  
  33. //public:
  34. void    ModalText_Init        (ModalText*    self);
  35. void    ModalText_Free        (ModalText*    self);
  36.  
  37. //public:
  38. void    ModalText_ConnectToData    (ModalText*    self,
  39.                                  AMSignaler*    inData);
  40.  
  41. //protected:
  42. void    ModalText_FinishMake         (ModalText*    self);
  43. void    ModalText_DoItem            (ModalText*    self,
  44.                                  SInt16        inItemHit);
  45. void    ModalText_DataChanged        (ModalText*    self,
  46.                                  long        inDataID);
  47. Boolean    ModalText_Filter            (ModalText*    self,
  48.                                  EventRecord        *ioEvent,
  49.                                  DialogItemIndex    *outItemHit);
  50.